<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/taglibs-struts2.jsp" %>

<form name="searchform" action="flightOrderAction!searchOrder.action" method="post">
<div class="right2">
  <div class="right600b"><h2><img src="<c:url value="/images/r101.jpg"/>"/></h2><h2 class="r101">查询自助订单</h2>
  <h2><img src="<c:url value="/images/r103.jpg"/>"/></h2></div>
  <div class="rightk">
  <h3>提交日期：</h3>
  <h2><input type="text" name="createdDate" onfocus="HS_setDate(this)" style="width: 100px;" value="<c:out value="${param['createdDate']}"/>"/>
</h2>
  <h2> </h2>
  <h2> </h2>
  </div>
<div class="rightk">
  <h3>订单号：</h3>
  <h2><input type="text" name="orderno" size="20" value="<c:out value="${param['orderno']}"/>"/>
</h2></div>
<div class="rightk">
  <h3>行程关键字：</h3>
  <h2>
    <input type="text" size="20" name="tripkeyword" value="<c:out value="${param['tripkeyword']}"/>"/>
</h2>
</div>

<div class="rightk">
  <h3>旅客关键字：</h3>
  <h2><input type="text" size="30" name="guestKeyword" value="<c:out value="${param['guestKeyword']}"/>"/>
</h2></div>

<div class="rightk2"><h3/><h2><img height="22" border="0" width="90" src="<c:url value="/images/t03.jpg"/>" onclick="submitSearch();"/></h2>
<h2><img height="20" width="60" src="<c:url value="/images/t04.jpg"/>"/></h2>
</div>
</form>

<script type="text/javascript">
function submitSearch(){
window.document.searchform.submit();
}
</script>

<div class="right600k"><h2><img src="<c:url value="/images/r101.jpg"/>"/></h2><h2 class="r102">自助订单（点对点）订单列表页面</h2>
<h2><img src="<c:url value="/images/r103.jpg"/>"/></h2></div>
<div class="r207"><h2 class="r100">联系人姓名</h2>
<h2 class="r100">订单号</h2>
<h2 class="50">订单状态</h2><h2 class="r50">去向</h2><h2 class="r100">航班号</h2><h2 class="r100">城市对</h2><h2 class="r100">起飞时间</h2><h2 class="r100">降落时间</h2>

</div>
<!--这里循环-->
<c:forEach var="order" items="${orderList}">
<div class="r208">
  <h2 class="r100"><c:out value="${order.orderContact.name}"/></h2>
  <h2 class="r100"><a target=_blank href="<c:url value="flightOrderAction!orderDetail.action"><c:param name="orderId" value="${order.id}"/></c:url>"><c:out value="${order.orderno}"/></a></h2>
  <h2 class="r50"><font color="#cc0000">未支付</font></h2>
  <h2 class="r50"><font color="#009900">去程</font></h2>
  <h2 class="r100"><c:out value="${order.toPlaneno}"/></h2>
  <h2 class="r100">
    <c:choose>
      <c:when test="${order.transferAirport==null}"><c:out value="${order.offAirport.airportChineseName}"/>-<c:out value="${order.downAirport.airportChineseName}"/></c:when>
      <c:otherwise><c:out value="${order.offAirport.airportChineseName}"/>-<c:out value="${order.transferAirport.airportChineseName}"/></c:otherwise>
    </c:choose>
  </h2>
  <h2 class="r100"><fmt:formatDate value="${order.goOffDate}" pattern="yyyy-MM-dd"/></h2>
  <h2 class="r100">
    <c:choose>
      <c:when test="${order.transferAirport==null}"><fmt:formatDate value="${order.goDownDate}" pattern="yyyy-MM-dd"/></c:when>
      <c:otherwise><fmt:formatDate value="${order.goTransferDate}" pattern="yyyy-MM-dd"/></c:otherwise>
    </c:choose>
  </h2>
</div>
<c:if test="${order.transferAirport!=null}">
<div class="r208">
  <h2 class="r100">&nbsp;</h2>
  <h2 class="r100">&nbsp;</h2>
  <h2 class="r50">&nbsp;</h2>
  <h2 class="r50">&nbsp;</h2>
  <h2 class="r100"><c:out value="${order.toTransferPlaneno}"/></h2>
  <h2 class="r100"><c:out value="${order.transferAirport.airportChineseName}"/>-<c:out value="${order.downAirport.airportChineseName}"/></h2>
  <h2 class="r100"><fmt:formatDate value="${order.goTransferDate}" pattern="yyyy-MM-dd"/></h2>
  <h2 class="r100"><fmt:formatDate value="${order.goDownDate}" pattern="yyyy-MM-dd"/></h2>
</div>
</c:if>
<c:if test="${order.backOffDate!=null}">
<div class="r208">
  <h2 class="r100">&nbsp;</h2>
  <h2 class="r100">&nbsp;</h2>
  <h2 class="r50">&nbsp;</h2>
  <h2 class="r50">&nbsp;<font color="#009900">回程</font></h2>
  <h2 class="r100"><c:out value="${order.backPlaneno}"/></h2>
  <h2 class="r100">
    <c:choose>
      <c:when test="${order.transferAirport==null}"><c:out value="${order.downAirport.airportChineseName}"/>-<c:out value="${order.offAirport.airportChineseName}"/></c:when>
      <c:otherwise><c:out value="${order.downAirport.airportChineseName}"/>-<c:out value="${order.transferAirport.airportChineseName}"/></c:otherwise>
    </c:choose>
  </h2>
  <h2 class="r100"><fmt:formatDate value="${order.backOffDate}" pattern="yyyy-MM-dd"/></h2>
  <h2 class="r100">
    <c:choose>
      <c:when test="${order.transferAirport==null}"><fmt:formatDate value="${order.backDownDate}" pattern="yyyy-MM-dd"/></c:when>
      <c:otherwise><fmt:formatDate value="${order.backTransferDate}" pattern="yyyy-MM-dd"/></c:otherwise>
    </c:choose>
  </h2>
</div>
<c:if test="${order.transferAirport!=null}">
<div class="r208">
  <h2 class="r100">&nbsp;</h2>
  <h2 class="r100">&nbsp;</h2>
  <h2 class="r50">&nbsp;</h2>
  <h2 class="r50">&nbsp;</h2>
  <h2 class="r100"><c:out value="${order.backTransferPlaneno}"/></h2>
  <h2 class="r100"><c:out value="${order.transferAirport.airportChineseName}"/>-<c:out value="${order.offAirport.airportChineseName}"/></h2>
  <h2 class="r100"><fmt:formatDate value="${order.backTransferDate}" pattern="yyyy-MM-dd"/></h2>
  <h2 class="r100"><fmt:formatDate value="${order.backDownDate}" pattern="yyyy-MM-dd"/></h2>
</div>
</c:if>
</c:if>
</c:forEach>

</div>